package com.zrt.view;

import org.springframework.stereotype.Controller;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

@Controller
public class Assets extends JDialog implements ActionListener {

    JLabel jl;
    JTextField jtf;
    JButton jb1;


    public void myAssets(){

        jl = new JLabel("设置金额:");
        jl.setBounds(40,30,160,35);
        jl.setFont(new Font("宋体",Font.BOLD,20));
        add(jl);

        jtf = new JTextField();
        jtf.setBounds(200,30,150,35);
        jtf.setFont(new Font("宋体",Font.BOLD,20));
        add(jtf);

        jb1 = new JButton("确认");
        jb1.setBounds(200, 250, 100, 35);
        jb1.setFont(new Font("宋体", Font.PLAIN, 25));
        add(jb1);

        setTitle("电子科技大学成都学院财务管理系统");
        setLayout(null);
        setSize(550, 350);
        setLocation(550, 250);
        setResizable(false);
        setModal(true);
        setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
        setVisible(true);
    }


    @Override
    public void actionPerformed(ActionEvent e) {

    }
}
